package cn.jqq.org.service;

import cn.jqq.basic.PageList;
import cn.jqq.org.domain.Department;
import cn.jqq.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {

    Department findOne(Long id);

    List<Department> findAll();

    void add(Department department);

    void update(Department department);

    void delete(Long id);

    /**
     * 分页查询
     * @param departmentQuery
     * @return
     */
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}


